package org.example.builder;

/**
 * @author Zhang Yu
 * @description: TODO
 * @date 2024/5/20 13:43
 */

//具体建造者1
public class ConcreteBuilder1 extends Builder {

    @Override
    public void buildPart1() {
        product.setPart1("builder 1 set part1.");
    }

    @Override
    public void buildPart2() {
        product.setPart2("builder 1 set part2.");
    }

    @Override
    public void buildPart3() {
        product.setPart3("builder 1 set part3.");
    }

    @Override
    public Product getProduct() {
        System.out.println("builder 1 build product.");
        return product;
    }
}
